package Listener;

import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

import Command.Command;
import Graphique.CompositeCenter;

public class ButtonListener implements Listener{
	

	private Command command;
	
	public ButtonListener(Command command){
		this.command=command;
	}

	@Override
	public void handleEvent(Event e) {
		command.execute();
	}
}
